<?php

namespace app\admin\model;

use think\Model;

use think\Db;
use think\Request;

class Sale_payreg extends Model
{
    public function getsalepay($res)
    {
        $data = Db::name('sale_payreg')->select();

    }

    protected function status($status)
    {
        $map = array();
        switch ($status) {
            case '1':
                $map['paytype_id'] = ['1,3,4,5'];
                break;
            case '2':
                $map['paytype_id'] = ['1,3,4,5'];
                break;
            case '3':
                # code...
                break;
            case '4':
                # code...
                break;
            case '5':
                # code...
                break;
            case '6':
                # code...
                break;
            case '7':
                # code...
                break;
            default:
                # code...
                break;
        }
    }
}